﻿using System;

namespace Medianamik.UI.Web.MVP
{
    public class NumericalIdEventArgs : EventArgs
    {
        public NumericalIdEventArgs(int? id)
        {
            Id = id;
        }

        public NumericalIdEventArgs(string id)
        {
            int test;
            if (int.TryParse(id, out test))
                Id = test;
        }

        public int? Id
        {
            get;
            private set;
        }
    }
}
